package com.lxl.testHd.etl.one;

import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;

import java.io.IOException;

/**
 * @author ：e_lixilin
 * @date ：2022/2/21 14:33
 * @description：
 * @modified By：
 */
public class EtlOneMapper extends Mapper<LongWritable, Text, Text, NullWritable> {
    Text outKey = new Text();
    NullWritable outValue =  NullWritable.get();
    @Override
    protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {
        outKey.set(value.toString());
        context.write(outKey,outValue);
    }
}
